package com.candoit.webapps.pricing.controllers;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import com.candoit.webapps.pricing.model.opcional.Fondeado;

@ManagedBean(name = "altaOpcionalFondeadoCtrl")
@RequestScoped
public class AltaOpcionalFondeado extends AbstractController {

	private Fondeado current;
	
	public Fondeado getSelected() {
        if (current == null) {
            current = new Fondeado();
        }
        return current;
    }

	public void create(){
		/*TODO: validar antes de crear*/
		this.save(current);
	}
	
}
